﻿<%@ page contentType="text/html;charset=UTF-8" isELIgnored="false" autoFlush="true"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%request.setAttribute("curDate",new java.util.Date());%>
    <table border="0" cellpadding="0" cellspacing="0" width="497" align="center" class="homepage-questiontable">
    <tr>
        <td width="18"></td>
        <td style="border-bottom-width:0px;"><html:link page="/life.mrqa?action=list&catId=47" styleClass="bar">名企招聘</html:link></td>
        <td align="right" style="border-bottom-width:0px;"><html:link page="/life.mrqa?action=list&catId=47">更多&nbsp;></html:link>&nbsp;&nbsp;</td>
    </tr>
    <tr>
        <td colspan="3" style="height:4px;"></td>
    </tr>
    <c:forEach var="question" items="${part1}">
    <tr>
        <td width="18"></td>
        <td width="120">
        <c:set var="catId" value="${question.mrIaskCategory.id}"/>
        <html:link page="/life.mrqa?action=list" paramId="catId" paramName="catId">
        [<c:out value="${question.mrIaskCategory.name}"/>]
        </html:link>&nbsp;&nbsp;
        </td>
        <td>
            <html:link page="/life.mrqa?action=view" paramId="id" paramName="question" paramProperty="id">
            	<c:if test="${question.titleAttribute != null}">
            		<span style="<c:out value="${question.titleAttribute}" />">
            	</c:if>
                <c:out value="${question.title}" escapeXml="false"/>
              <c:if test="${question.titleAttribute != null}">
            		</span>
            	</c:if>
            </html:link>
            <c:set var="differ" value="${(curDate.time-question.postDate.time)/3600000}"/>
            <c:if test="${differ <= 48}">
                <font color="#FF0000" title="48小时内新帖子">(new)</font>
            </c:if>
        </td>
    </tr>
    </c:forEach>
    <tr>
        <td colspan="3" style="height:6px;"></td>
    </tr>
    </table>
<!--
    <br>
-->
    <div style="padding:7px 0px 7px 0px;" align="left">
    		<html:link page="life.mrqa?action=list&catId=138"><img src="qa/images/activity/hengtian_AD.jpg" alt="HengTian" width="498">
        </html:link>
    </div>
    <table border="0" cellpadding="0" cellspacing="0" width="497" align="center" class="homepage-questiontable">
    <tr>
        <td width="18"></td>
        <td style="border-bottom-width:0px;"><html:link page="/tech.mrqa?action=list&categoryType=2" styleClass="bar">技术交流</html:link></td>
        <td align="right" style="border-bottom-width:0px;"><html:link page="/tech.mrqa?action=list&categoryType=2">更多&nbsp;></html:link>&nbsp;&nbsp;</td>
    </tr>
    <c:forEach var="question" items="${part4}">
    <tr>
        <td width="18"></td>
        <td width="130">
        <c:set var="catId" value="${question.mrIaskCategory.id}"/>
        <html:link page="/tech.mrqa?action=list" paramId="catId" paramName="catId">
        [<c:out value="${question.mrIaskCategory.name}"/>]
        </html:link>&nbsp;&nbsp;
        </td>
        <td>
            <html:link page="/tech.mrqa?action=view" paramId="id" paramName="question" paramProperty="id">
            	<c:if test="${question.titleAttribute != null}">
            		<span style="<c:out value="${question.titleAttribute}" />">
            	</c:if>
                <c:out value="${question.title}" escapeXml="false"/>
              <c:if test="${question.titleAttribute != null}">
              	</span>
              </c:if>
            </html:link>
            <c:set var="differ" value="${(curDate.time-question.postDate.time)/3600000}"/>
            <c:if test="${differ <= 48}">
                <font color="#FF0000" title="48小时内新帖子">(new)</font>
            </c:if>
        </td>
    </tr>
    </c:forEach>
    <tr>
        <td colspan="3" style="height:6px;"></td>
    </tr>
    </table>
    <!-- br -->
    <div style="padding:7px 0px 7px 0px;" align="left">
    	  <html:link page="life.mrqa?action=list&catId=139"><img src="qa/images/activity/tambition.jpg" alt="天鸿志" width="498">
        </html:link>
    </div>
    <table border="0" cellpadding="0" cellspacing="0" width="497" align="center" class="homepage-questiontable">
    <tr>
        <td width="18"></td>
        <td style="border-bottom-width:0px;"><html:link page="/question.mrqa?action=list&catId=21" styleClass="bar">职场交流</html:link></td>
        <td align="right" style="border-bottom-width:0px;"><html:link page="/question.mrqa?action=list&catId=21">更多&nbsp;></html:link>&nbsp;&nbsp;</td>
    </tr>
    <c:forEach var="question" items="${part3}">
    <tr>
        <td width="18"></td>
        <td width="120">
        <c:set var="catId" value="${question.mrIaskCategory.id}"/>
        <html:link page="/question.mrqa?action=list" paramId="catId" paramName="catId">
        [<c:out value="${question.mrIaskCategory.name}"/>]
        </html:link>&nbsp;&nbsp;
        </td>
        <td>
            <html:link page="/question.mrqa?action=view" paramId="id" paramName="question" paramProperty="id">
            	<c:if test="${question.titleAttribute != null}">
            		<span style="<c:out value="${question.titleAttribute}" />">
            	</c:if>
                <c:out value="${question.title}" escapeXml="false"/>
              <c:if test="${question.titleAttribute != null}">
            		</span>
            	</c:if>
            </html:link>
            <c:set var="differ" value="${(curDate.time-question.postDate.time)/3600000}"/>
            <c:if test="${differ <= 48}">
                <font color="#FF0000" title="48小时内新帖子">(new)</font>
            </c:if>
        </td>
    </tr>
    </c:forEach>
    <tr>
        <td colspan="3" style="height:6px;"></td>
    </tr>
    </table>
    <!--<br>-->
    <div style="padding:7px 0px 7px 0px;" align="left">
    	  <html:link page="/life.mrqa?action=list&catId=128"><img src="qa/images/activity/Sunflower_AD.gif" alt="Sunflower" width="498">
        </html:link>
    </div>
    <table border="0" cellpadding="0" cellspacing="0" width="497" align="center" class="homepage-questiontable">
    	<tr>
        <td width="18"></td>
        <td style="border-bottom-width:0px;"><html:link page="/question.mrqa?action=list&catId=52" styleClass="bar">MFer Club</html:link></td>
        <td align="right" style="border-bottom-width:0px;"><html:link page="/question.mrqa?action=list&catId=52">更多&nbsp;></html:link>&nbsp;&nbsp;</td>
    </tr>
    <c:forEach var="question" items="${part2}">
    <tr>
        <td width="18"></td>
        <td width="120">
        <c:set var="catId" value="${question.mrIaskCategory.id}"/>
        <html:link page="/question.mrqa?action=list" paramId="catId" paramName="catId">
        [<c:out value="${question.mrIaskCategory.name}"/>]
        </html:link>&nbsp;&nbsp;
        </td>
        <td>
            <html:link page="/question.mrqa?action=view" paramId="id" paramName="question" paramProperty="id">
            	<c:if test="${question.titleAttribute != null}">
            		<span style="<c:out value="${question.titleAttribute}" />">
            	</c:if>
                <c:out value="${question.title}" escapeXml="false"/>
              <c:if test="${question.titleAttribute != null}">
            		</span>
            	</c:if>
            </html:link>
            <c:set var="differ" value="${(curDate.time-question.postDate.time)/3600000}"/>
            <c:if test="${differ <= 48}">
                <font color="#FF0000" title="48小时内新帖子">(new)</font>
            </c:if>
        </td>
    </tr>
    </c:forEach>
    <tr>
        <td colspan="3" style="height:6px;"></td>
    </tr>
    </table>